<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="QuestionnaireTemplate" targetNamespace="http://padsolutions.dnn.modules.questionnaire/Questionnaire.xsd" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns="http://padsolutions.dnn.modules.questionnaire/Questionnaire.xsd" xmlns:mstns="http://padsolutions.dnn.modules.questionnaire/Questionnaire.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="questionnaire">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="questionnaireid" type="xs:string" nillable="true" minOccurs="0" />
                <xs:element name="title" type="xs:string" />
                <xs:element name="introduction" type="xs:string" nillable="true" minOccurs="0" />
                <xs:element name="questions">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="question" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="id" type="xs:string" />
                                        <xs:element name="issue" type="xs:string" />
                                        <xs:element name="description" type="xs:string" minOccurs="0" nillable="true" />
                                        <xs:element name="required" type="xs:boolean" minOccurs="0" nillable="true" />
                                        <xs:element name="type">
                                            <xs:simpleType>
                                                <xs:restriction base="xs:string">
                                                    <xs:enumeration value="Boolean" />
                                                    <xs:enumeration value="Date" />
                                                    <xs:enumeration value="Integer" />
                                                    <xs:enumeration value="MultipleOption" />
                                                    <xs:enumeration value="SingleOption" />
                                                    <xs:enumeration value="String" />
                                                </xs:restriction>
                                            </xs:simpleType>
                                        </xs:element>
                                        <xs:element name="size" type="xs:integer" minOccurs="0" nillable="true" />
                                        <xs:element name="mintext" type="xs:string" minOccurs="0" nillable="true" />
                                        <xs:element name="maxtext" type="xs:string" minOccurs="0" nillable="true" />
                                        <xs:element name="default" type="xs:string" minOccurs="0" nillable="true" />
                                        <xs:element name="options" minOccurs="0">
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element name="option" maxOccurs="unbounded">
                                                        <xs:complexType>
                                                            <xs:sequence>
                                                                <xs:element name="value" type="xs:string" />
                                                                <xs:element name="text" type="xs:string" />
                                                            </xs:sequence>
                                                        </xs:complexType>
                                                    </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>